
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.SwingConstants;


public class JFrameServer extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private JPanel contentPane;
	private JLabel lblCurrentTime;

	/**
	 * Create the frame.
	 */
	public JFrameServer() {
		
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		lblCurrentTime = new JLabel("New label");
		lblCurrentTime.setHorizontalAlignment(SwingConstants.CENTER);
		lblCurrentTime.setFont(new Font("Dialog", Font.BOLD, 40));
		lblCurrentTime.setBounds(80, 101, 302, 67);
		contentPane.add(lblCurrentTime);
	}
	
	public void setCurrentTime(String time){
		lblCurrentTime.setText(time);
	}
}
